﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NextCMS.Models
{
    /// <summary>
    /// Summary description for ModuleModel
    /// </summary>
    public class ModuleModel
    {
        public int Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Type { get; set; }
        public string Settings { get; set; }
        public List<SubModule> SubModules = new List<SubModule>();
    }
    public class SubModule
    {
        public int Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Type { get; set; }
        public string Settings { get; set; }
    }
    public interface IModules : IDisposable
    {
        ModuleModel GetById(int id);
        IEnumerable<ModuleModel> GetAllModules();
    }
}
